﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Superstore.Store.Models;

namespace Superstore.Store.Controllers
{
    public class OrderController : Controller
    {
        // GET: Order
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult OrderDetail()
        {
            return View();
        }

        [HttpPost]
        public PartialViewResult GetOrderList(List<OrderInfo> order_info)
        {
            if (order_info != null && (order_info.Count > 0))
            {
                return PartialView("OrderList", order_info);
            }
            else
                return PartialView("OrderList");
        }
    }
}